import request from '@/utils/request'

export function selectOrder(query) {
    return request({
        url:"/order/list",
        method:"get",
        params:query
    })
  }


export function addOrder(data) {
    return request({
        url:"/order/addOrder",
        method:"post",
        data:data
    })
  }


export function editOrder(data) {
  return request({
      url:"/order/editOrder",
      method:"put",
      data:data
  })
}


  export function deleteOrder(id) {
    return request({
        url:"/order/"+id,
        method:"delete"
    })
  }
  export function receiveOrder(data) {
    return request({
        url:"/order/receiveOrder",
        method:"put",
        data:data
    })
  }
  export function countnum() {
    return request({
        url:"/order/sum",
        method:"get",
    })
  }
